<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	<meta name="description" content="<?php FungusmetaDesc(); ?>" />
	<?php FungusmetaTag(); ?>
<?php endwhile; endif; elseif(is_home()) : ?>
	<meta name="description" content="<?php if(get_option('Fungus_site_description')) { echo stripslashes(get_option('Fungus_site_description')); } else { bloginfo('description'); } ?>" />
	<meta name="keywords" content="<?php if(get_option('Fungus_keywords')) { echo stripslashes(get_option('Fungus_keywords')); } else { echo 'wordpress, free themes, dynamicwp, premium themes'; } ?>" />
<?php endif; ?>

<title>
	<?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
	<?php if ( is_search() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Search Results<?php } ?>
	<?php if ( is_author() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Author Archives<?php } ?>
	<?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
	<?php if ( is_page() && !is_front_page() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php wp_title(''); ?><?php } ?>
	<?php if ( is_category() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php single_cat_title(); ?><?php } ?>
	<?php if ( is_month() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php the_time('F'); ?><?php } ?>
	<?php if ( is_404() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Couldn't find what your looking for<?php } ?>
	<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Tag Archive&nbsp;|&nbsp;<?php  single_tag_title("", true); } } ?>
</title>

<?php wp_enqueue_script('jquery'); ?>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon.ico" type="image/x-icon" />

<!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
		
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>

<script language="JavaScript" type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jqueryslidemenu.js"></script>
<script type="text/javascript">
	/* <![CDATA[ */
		jqueryslidemenu.buildmenu("menu", arrowimages);
	/* ]]> */
</script>

<style media="all" type="text/css" rel="stylesheet">
.wp-pagenavi{ font-size: 14px; font-weight: bold; text-transform: uppercase; clear: both; color: #666; margin-top: 10px; padding: 0px 0 0 0; text-align:left; }
.wp-pagenavi a:visited, .wp-pagenavi a:link, .wp-pagenavi span.current{	padding: 8px 12px; border: none; border-bottom: 1px solid #fff;	color: #fff; background: none;	margin: 0;}
.wp-pagenavi a:hover, .wp-pagenavi span.current { color: #000; background: #fff; }
.wp-pagenavi .pages { float: left; display: none;}
.wp-pagenavi span.extend { background: none; border: none; color: #FFF; }
</style>

</head>

<body class="sub">

<!-- Header -->
<div id="header_wrap">
	<div id="header">
	
		<ul id="navigation">
				<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>
				<?php wp_list_pages('depth=1&menu_order&title_li=&exclude='.get_option('FunDay_exclude_page') ); ?>
		</ul>	
		
		<div id="search_wrap">
			<?php include(TEMPLATEPATH . '/searchform.php'); ?>
		</div><a href="<?php bloginfo('url'); ?>"><img class="logo"  src="<?php if(get_option('Fungus_logo_image')) echo get_option('Fungus_logo_image'); else { bloginfo('template_url'); ?>/images/logo.png <?php } ?>" alt="<?php if(get_option('Fungus_logo_alt')) echo get_option('Fungus_logo_alt'); else echo 'Logo'; ?>" /></a>

	<div id="menu" class="jqueryslidemenu">
				<ul>
					<?php wp_list_categories('title_li=&exclude='.get_option('Fungus_exclude_cat')) ?>
				</ul>
			 </div><p class="clear"></p></div>
</div>
<!-- [END] Header -->

<!-- Content -->
<div id="content_wrap">
	<div id="content" class="clearfix">
		<div class="clear"></div>

			 
		<div id="page">
			
			
			 